package com.witframework.components;

import org.springframework.stereotype.Component;

import com.witframework.PropertiesConstants;
import com.witframework.core.ApplicationProperties;
import com.witframework.web.mvc.Controller;
import com.witframework.web.mvc.WebContext;

@Component
public class DataSetAuthController implements Controller {

	public String executor(WebContext webContext) {		
		webContext.getParameterAndsetAttribute("data");
		webContext.getParameterAndsetAttribute("properties");
		webContext.getParameterAndsetAttribute("category");
		webContext.getParameterAndsetAttribute("entryid");
		webContext.getParameterAndsetAttribute("entryname");
		webContext.getParameterAndsetAttribute("titles");
		webContext.getParameterAndsetAttribute("datatype");
		webContext.getParameterAndsetAttribute("datastyle");		
		webContext.getParameterAndsetAttribute("multiple");
		webContext.getParameterAndsetAttribute("data2");
		webContext.getParameterAndsetAttribute("root");
		webContext.getParameterAndsetAttribute("parentid");
		webContext.getParameterAndsetAttribute("nodeid");
		webContext.getParameterAndsetAttribute("nodeid2");
		webContext.getParameterAndsetAttribute("nodelabel");
		webContext.getParameterAndsetAttribute("nodelabel2");
		webContext.getParameterAndsetAttribute("onlyLeaf");
		webContext.getParameterAndsetAttribute("height");
		webContext.getParameterAndsetAttribute("width");
		webContext.getParameterAndsetAttribute("target");
		webContext.getParameterAndsetAttribute("target_value");
		return "classpath:/com/witframework/webroot/framework/security/datasetauthset.jsp"+ApplicationProperties.getProperty(PropertiesConstants.WIT);
	}

}
